
package com.kugou.game.sdk.entity;

import com.kugou.framework.base.IEntity;

/**
 * 描述:应用信息
 * 
 * @author chenys
 * @since 2013-12-18 下午4:24:21
 */
public class AppInfo implements IEntity {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    private long appId;

    private String appName;

    private String packageName;

    private int versionCode;

    private String versionName;

    /**
     * 游戏缩略图
     */
    private String iconUrl;

    /**
     * 游戏下载地址
     */
    private String downloadUrl;

    /**
     * app的字节数:比如1024
     */
    private long fileSize;

    /**
     * app的字符串大小：比如16M
     */
    private String appSize;

    /**
     * 应用分类
     */
    private String className;

    private long downloadNums;

    private boolean isNewGame;

    /**
     * 是否推荐。1:推荐，0：未推荐
     */
    private int recommandtype;

    /**
     * 游戏介绍
     */
    private String appIntro;

    private String appTypeName;

    /**
     * 游戏类型：网络游戏，单机游戏等。 "1：网络游戏", "2：网页游戏", "3：小游戏", "4：单机游戏"
     */
    private int apptype;

    /**
     * 网络游戏
     */
    public static final int TYPE_NET_GAME = 1;

    /**
     * 网页游戏
     */
    public static final int TYPE_WEB_GAME = 2;

    /**
     * 小游戏
     */
    public static final int TYPE_TINY_GAME = 3;

    /**
     * 单机游戏
     */
    public static final int TYPE_SINGLE_GAME = 4;

    /**
     * 游戏语言
     */
    private String appLanguage;

    /**
     * 游戏详情banner图的url地址
     */
    private String[] appImageUrls;

    /**
     * 推荐级别
     */
    private int recommendRank;

    private String appDeveloper;

    /**
     * 最近更新时间
     */
    private String updateTime;

    /**
     * 属于哪个页面的游戏0：酷狗推荐页面，1：更多游戏
     */
    private int gamePage;

    private int gameid;

    // 积分墙下载奖励提示语
    private String scoreAwardText;

    private String filehash;

    /** 下载来源(用于统计) */
    private int downloadSourceId;

    // 是否需要自动下载；1需要，0不需要
    private int needAutoDownload;

    private long downloadCompleteTime;

    // 下载统计参数列表，由服务端定义，下载统计时原样传给服务端
    private String statparams = "";

    /**
     * 下载文件唯一标识符，这里用下载地址作为key
     * 
     * @return
     */
    public String getDownloadFileKey() {
        return downloadUrl;
    }

    public long getAppId() {
        return appId;
    }

    public void setAppId(long appId) {
        this.appId = appId;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getAppTypeName() {
        return appTypeName;
    }

    public void setAppTypeName(String appTypeName) {
        this.appTypeName = appTypeName;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getAppSize() {
        return appSize;
    }

    public void setAppSize(String appSize) {
        this.appSize = appSize;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public long getDownloadNums() {
        return downloadNums;
    }

    public void setDownloadNums(long downloadNums) {
        this.downloadNums = downloadNums;
    }

    public boolean isNewGame() {
        return isNewGame;
    }

    public void setNewGame(boolean isNewGame) {
        this.isNewGame = isNewGame;
    }

    public int getRecommandtype() {
        return recommandtype;
    }

    public void setRecommandtype(int recommandtype) {
        this.recommandtype = recommandtype;
    }

    public String getAppIntro() {
        return appIntro;
    }

    public void setAppIntro(String appIntro) {
        this.appIntro = appIntro;
    }

    public int getApptype() {
        return apptype;
    }

    public void setApptype(int apptype) {
        this.apptype = apptype;
    }

    public String getAppLanguage() {
        return appLanguage;
    }

    public void setAppLanguage(String appLanguage) {
        this.appLanguage = appLanguage;
    }

    public String[] getAppImageUrls() {
        return appImageUrls;
    }

    public void setAppImageUrls(String[] appImageUrls) {
        this.appImageUrls = appImageUrls;
    }

    public int getRecommendRank() {
        return recommendRank;
    }

    public void setRecommendRank(int recommendRank) {
        this.recommendRank = recommendRank;
    }

    public String getAppDeveloper() {
        return appDeveloper;
    }

    public void setAppDeveloper(String appDeveloper) {
        this.appDeveloper = appDeveloper;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 属于哪个页面的游戏0：酷狗推荐页面，1：单机游戏，2：网络游戏
     */
    public int getGamePage() {
        return gamePage;
    }

    /**
     * 属于哪个页面的游戏0：酷狗推荐页面，1：单机游戏，2：网络游戏
     */
    public void setGamePage(int gamePage) {
        this.gamePage = gamePage;
    }

    public int getGameid() {
        return gameid;
    }

    public void setGameid(int gameid) {
        this.gameid = gameid;
    }

    public String getScoreAwardText() {
        return scoreAwardText;
    }

    public void setScoreAwardText(String scoreAwardText) {
        this.scoreAwardText = scoreAwardText;
    }

    public String getFilehash() {
        return filehash;
    }

    public void setFilehash(String filehash) {
        this.filehash = filehash;
    }

    public int getDownloadSourceId() {
        return downloadSourceId;
    }

    public void setDownloadSourceId(int downloadSourceId) {
        this.downloadSourceId = downloadSourceId;
    }

    /**
     * 是否需要自动下载 1需要，0不需要
     */
    public int getNeedAutoDownload() {
        return needAutoDownload;
    }

    /**
     * 是否需要自动下载 1需要，0不需要
     */
    public void setNeedAutoDownload(int needAutoDownload) {
        this.needAutoDownload = needAutoDownload;
    }

    public long getDownloadCompleteTime() {
        return downloadCompleteTime;
    }

    public void setDownloadCompleteTime(long downloadCompleteTime) {
        this.downloadCompleteTime = downloadCompleteTime;
    }

    public String getStatparams() {
        return statparams;
    }

    public void setStatparams(String statparams) {
        this.statparams = statparams;
    }
}
